+2006-05-18 Michael Natterer <mitch@imendio.com>
+
+ * gtk/gtkrange.c: canonicalize the name of the "activate-slider"
+ style property and use GTK_PARAM_READABLE instead of
+ G_PARAM_READABLE. Moved one "activate_slider" variable to the
+ local scope its used in.
+
2006-06-18 Michael Emmel <mike.emmel@gmail.com>
* gdk/directfb/gdkscreen-directfb.c:
+2006-05-18 Michael Natterer <mitch@imendio.com>
+
+ * gtk/gtkrange.c: canonicalize the name of the "activate-slider"
+ style property and use GTK_PARAM_READABLE instead of
+ G_PARAM_READABLE. Moved one "activate_slider" variable to the
+ local scope its used in.
+
2006-06-18 Michael Emmel <mike.emmel@gmail.com>
* gdk/directfb/gdkscreen-directfb.c:
GTK_PARAM_READABLE));
gtk_widget_class_install_style_property (widget_class,
- g_param_spec_boolean ("activate_slider",
+ g_param_spec_boolean ("activate-slider",
P_("Draw slider ACTIVE during drag"),
P_("With this option set to TRUE, sliders will be drawn ACTIVE and with shadow IN while they are dragged"),
FALSE,
- G_PARAM_READABLE));
+ GTK_PARAM_READABLE));
}
static void
gint focus_line_width = 0;
gint focus_padding = 0;
gboolean touchscreen;
- gboolean activate_slider;
g_object_get (gtk_widget_get_settings (widget),
"gtk-touchscreen-mode", &touchscreen,
if (range->layout->grab_location == MOUSE_SLIDER)
{
- gtk_widget_style_get (widget, "activate_slider", &activate_slider, NULL);
-
+ gboolean activate_slider;
+
+ gtk_widget_style_get (widget, "activate-slider", &activate_slider, NULL);
+
if (activate_slider)
{
state = GTK_STATE_ACTIVE;
}
range_grab_add (range, MOUSE_SLIDER, event->button);
-
- gtk_widget_style_get (widget, "activate_slider", &activate_slider, NULL);
-
- /* force a redraw, if the active slider is drawn differently to the prelight one */
+
+ gtk_widget_style_get (widget, "activate-slider", &activate_slider, NULL);
+
+ /* force a redraw, if the active slider is drawn differently to the
+ * prelight one
+ */
if (activate_slider)
gtk_widget_queue_draw (widget);
-
+
if (need_value_update)
update_slider_position (range, event->x, event->y);